<?php if(isset($category)): ?>
	<h2>Categoria: <?php echo $category->name; ?></h2>
<?php else: ?>
	<h2>Categoria no existente</h2>
<?php endif;?>

<?php if(isset($nodes) && count($nodes) > 0): ?>

<?php foreach($nodes as $node): ?>
	
	<?php $this->template->load("pages/category/commons/index_node", array("node" => $node)); ?>
	
<?php endforeach; ?>

<div class="paginacion">
	<?php echo $this->pagination->create_links(); ?>
</div>

<?php else: ?>

No existen contenidos para esta categoria

<?php endif; ?>
